<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>添加-- 后台管理 </title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">

	<div class="layui-form-item layui-row layui-col-xs12"        style="display: none" >
		<label class="layui-form-label">用户id</label>
		<div class="layui-input-block">
			<!--  style="display: none" -->
			<input id="buildingId" type="text" class="layui-input userId"  style="display: none"    >

			<input id="projectId" type="text" class="layui-input  "  style="display: none"    >
			<input id="projectLeaderId" type="text" class="layui-input  "  style="display: none"    >
		</div>
	</div>
	<div class="magb15 layui-col-md4 layui-col-xs12">
		<label class="layui-form-label">所属项目</label>
		<div class="layui-input-block">
			<select id="projects" name="userGrade" class="userGrade" lay-filter="userRole" lay-search="">

			</select>
		</div>
	</div>
	<input id="projectLeader" type="text" class="layui-input userId"  style="display: none"    placeholder="项目id">

	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">楼栋名称</label>
		<div class="layui-input-block">
			<input id="buildingName" type="text" class="layui-input  " lay-verify="required" placeholder="如:2号楼">
		</div>
	</div>
<!--	<div class="layui-form-item layui-row layui-col-xs12">-->
<!--		<label class="layui-form-label">地址</label>-->
<!--		<div class="layui-input-block">-->
<!--			<input id="address" type="text" class="layui-input phone"   placeholder="请输入">-->
<!--		</div>-->
<!--	</div>-->

	<div class="magb15 layui-col-md4 layui-col-xs12">
		<label class="layui-form-label">项目负责人</label>
		<div class="layui-input-block">
			<select id="projectLeaders" name="userGrade" class="userGrade" lay-filter="userRole" lay-search="">

			</select>
		</div>
		<label class="layui-form-label">添加 提示:</label>
		 如果未找到项目负责人,请先添加用户为负责人
	</div>

	<div class="layui-form-item layui-row layui-col-xs12">
		<div class="layui-input-block">
			<button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="addUser">立即添加</button>
			<button  type="reset" class="layui-btn layui-btn-sm layui-btn-primary">重置数据</button>
			<!--<button id="cancel"  class="layui-btn layui-btn-sm layui-btn-primary"  lay-filter="cancel">返回</button>-->
		</div>
	</div>
</form>
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="buildingAdd.js"></script>
</body>
</html>